#pragma once
#include "Buffer.h"

class CPackOut
{
public:
	CPackOut();
	~CPackOut();

public:
	bool		ResetBuffer();
	bool		Append(char* pBuffer, int nLen);

	bool		GetByte(byte& cByte);
	bool		GetWord(WORD& sShort);
	bool		GetInt(int& nInt);
	bool		GetDWord(DWORD& dwDWrod);
	bool		GetString(CString& strString);
	bool		GetString(CStringA& strString);

	char*		GetBuffer();
	int			GetLength();

private:
	CBuffer		m_strBuffer;
};
